import sqlite3
conn = sqlite3.connect("data/test.db")
cursor = conn.cursor()
cursor.execute("SELECT * FROM stocks")
print(cursor.fetchmany(2))
print('-'*30)
print(cursor.fetchall())